<template>
  <el-input
    ref="formItem"
    v-model.trim="valueTmp"
    v-bind="{ ...defaultAttrs, ...$attrs, ...item.attrs }"
    v-on="$listeners"
    @change="handleChange"
    @blur="blur"
    @focus="focus"
    @clear="clear"
    @input="onInput"
  />
</template>

<script>
import formItemMixin from './form-item-mixin'
export default {
  name: 'FInput',
  mixins: [formItemMixin],
  data() {
    return {
      defaultAttrs: {
        placeholder: '请输入',
        clearable: true
      }
    }
  }
}
</script>

<style scoped></style>
